Skip to content

Instantly share code, notes, and snippets.

@jmanhype
jmanhype / lvm-thin-pool-lessons-learned.md
Created December 8, 2025 15:40
LVM Thin Pool Disaster: Lessons Learned from a Proxmox Media Server

LVM Thin Pool Disaster: Lessons Learned from a Proxmox Media Server

TL;DR: Don't Set Up Thin Pools Like This

I spent hours fighting filesystem corruption on my Proxmox media server. The root cause? LVM thin pool with only 20MB of physical free space. Here's what went wrong and how to avoid it.

The Setup

  • Hardware: Proxmox VE 8.4.1 with Seagate SlimBUP 931GB external drive
  • Storage: LVM thin pool (SlimBUP) with containers for Plex and media services
@docularxu
docularxu / blog-claude-code-china-zh.md
Created February 22, 2026 13:54
在中国使用 Claude Code 解决 403 错误 - 完整指南(中文版)

在中国使用 Claude Code 解决 403 错误

2026 年 2 月 12 日

如果你在中国尝试使用 Claude Code,大概率会撞上 403 错误。本文覆盖三种使用场景的解决方案:

  • macOS 终端 (shell) - 在终端里直接使用 claude 命令行
  • VS Code 终端 - 在 VS Code 内置终端里使用 claude 命令行
  • VS Code Claude Code 扩展 - 使用 VS Code 里的 Claude Code 聊天面板
@raveenb
raveenb / ssh_into_android.md
Last active March 4, 2026 00:44
SSH into Android

Connecting to an Android device over SSH

Initial Setup

Install Android App Termux from APKPure or AppStore. If the app exists, just delete and re-install it to get the latest version, The APK can be downloaded from https://apkpure.com/termux/com.termux/ Install the APK using by running

adb install ~/Downloads/Termux_v0.73_apkpure.com.apk
# Métodos de Pesquisa e Ordenação em Estruturas de Dados
1 Conteúdo de apoio para Java
1.1 Consulte a sua disciplina de Fundamentos de Programação Orientada a Objetos (FPOO). Ela possui o conteúdo escrito necessário para relembrar conceitos e (re)colocar em prática o desenvolvimento de algoritmos usando Java.
1.1.1 Eu refiz o material escrito daquela disciplina para os estudantes que cursaram durante o segundo semestre de 2023. Você cursou este material refeito se a sua Atividade Somativa era sobre um sistema de financiamento habitacional.
1.1.2 Além disso, fiz uma nova revisão da diagramação daquele material e regravei novas videoaulas para os ingressantes daquela disciplina em 2024. São vídeos conceituais e aulas práticas. Também incluí recomendações de livros em alguns vídeos. Disponibilizei todos estes conteúdos em: https://pucpr.grupoa.education/plataforma/course/686599/content/12628140. Veja principalmente os conteúdos da Semana 1.
1.2 Além disso, disponibilizo conteúdos *extras* se necessário (de no
@johnvilsack
johnvilsack / get-vmwarefusion.sh
Created August 8, 2025 21:27
Direct Download VMWare Fusion - Download, Install, and Update VMWare Fusion Automatically.
#!/usr/bin/env bash
# VMware Fusion Latest Version Downloader, Installer, and Updater
# This script automatically finds, downloads, and optionally installs the highest version available
#
# Inspired by this gist: https://gist.github.com/jetfir3/6b28fd279bbcadbae70980bd711a844f
#
# Usage: $0 [-y] [-i] [-d] [-f] [-t <dmg_path>]
# -y: Skip download confirmation prompt
# -i: Automatically install after download (implies -y)
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@mberman84
mberman84 / all_files.md
Created February 24, 2026 21:09
Matt's Markdown Files

OpenClaw: System Prompt File Templates

Generalized versions of all root .md files used by OpenClaw. These files are loaded into the agent's system prompt on every request (except MEMORY.md which is conditional).

Copy these as starting points and customize for your own setup. Replace <placeholders> with your values.


AGENTS.md

.agent-dummy.card
h3 agent ia
.agent-header.card
.agent-title
h3 agent ia
.agent-button
i.fa.fa-bars
.agent-menu.card
ul
li